<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>18_flex换行</title>
    <link rel="stylesheet" href="./css/basic.css">
    <style>
        .container {
            width: 100vw;
            height: 100vh;
            display: flex;
            flex-wrap: wrap;
            background-color: pink;
            /* justify-content: space-between; */
            justify-content: space-evenly;
        }
        
        .item {
            width: 10vw;
            height: 100px;
            background-color: blueviolet;
            margin: 10px 20px;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="item">1</div>
        <div class="item">2</div>
        <div class="item">3</div>
        <div class="item">4</div>
        <div class="item">5</div>
        <div class="item">6</div>
        <div class="item">7</div>
        <div class="item">8</div>
        <div class="item">9</div>
        <div class="item">10</div>
        <div class="item">11</div>
        <div class="item">12</div>
        <div class="item">13</div>
        <div class="item">14</div>
        <div class="item">15</div>
        <div class="item">16</div>
        <div class="item">17</div>
        <div class="item">18</div>
        <div class="item">19</div>
        <div class="item">20</div>
    </div>
</body>

</html>